<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>Test_SNF_PRL_26_ChangeApplicationInPortal</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test_SNF_PRL_26_ChangeApplicationInPortal</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/portal/classic/</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Change container in portal--</td>
	<td></td>
</tr>
<tr>
	<td>windowMaximize</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>root</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>gtn</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='UIPortalLoginFormAction']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Add new portal --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Site</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Site</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Add New Portal</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Add New Portal</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>name</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name</td>
	<td>Test_SNF_PRL_26</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose Portal Template --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[text()='Portal Templates']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[text()='Portal Templates']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[text()='Basic Portal']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[text()='Basic Portal']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose Properties--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[text()='Properties']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[text()='Properties']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose Permisison Setting --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[text()='Permission Setting']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[text()='Permission Setting']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Access Permission Setting --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Add Permission</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Add Permission</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Platform</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Platform</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Administrators</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Administrators</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=exact:*</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=exact:*</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Edit Permission Setting --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Edit Permission Setting</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Edit Permission Setting</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Select Permission</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Select Permission</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Platform</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Platform</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='PermissionSelector']//a[@title=&quot;manager&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='PermissionSelector']//a[@title=&quot;manager&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>clickAt</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose new portal and click edit layout--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[contains(@href,'Test_SNF_PRL_26')]/preceding-sibling::a[text()='Edit Layout']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//a[contains(@href,'Test_SNF_PRL_26')]/preceding-sibling::a[text()='Edit Layout']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- View layout of portal before Change application in portal--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View Mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View Mode</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@class='VIEW-PORTAL VIEW-BLOCK']</td>
	<td></td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>//div[@class='VIEW-PORTAL VIEW-BLOCK']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View Mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View Mode</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Drag &amp; drop applcation in portal--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Gadgets</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Gadgets</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='Gadgets/Calculator']/div/div/div[1]/div[1]</td>
	<td></td>
</tr>
<tr>
	<td>dragAndDropToObject</td>
	<td>//div[@id='Gadgets/Calculator']/div/div/div[1]/div[1]</td>
	<td>//div[@class='LAYOUT-BLOCK LAYOUT-PORTLET']</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- View application after drag &amp; drop in portal--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View Mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View Mode</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@class='VIEW-PORTAL VIEW-BLOCK']</td>
	<td></td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>//div[@class='VIEW-PORTAL VIEW-BLOCK']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Edit application --</td>
	<td></td>
</tr>
<tr>
	<td>mouseOver</td>
	<td>//div[@class='VIEW-PORTAL VIEW-BLOCK']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[@title=&quot;Edit Portlet&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//a[@title=&quot;Edit Portlet&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>title</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>title</td>
	<td>Test_SNF_PRL_26</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose Select Icon tab --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIMaskWorkspace']//div[text()=&quot;Select Icon&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIMaskWorkspace']//div[text()=&quot;Select Icon&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@class='Icon AcrobatFile']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@class='Icon AcrobatFile']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose Decoration Themes--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIMaskWorkspace']//div[text()=&quot;Decoration Themes&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIMaskWorkspace']//div[text()=&quot;Decoration Themes&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIItemThemeSelector']//div[text()=&quot;Pink Simple&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIItemThemeSelector']//div[text()=&quot;Pink Simple&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save And Close</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save And Close</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- View after change something in application --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View Mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View Mode</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Move position of application --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@class='LAYOUT-BLOCK LAYOUT-PORTLET']</td>
	<td></td>
</tr>
<tr>
	<td>mouseOver</td>
	<td>//div[@class='LAYOUT-BLOCK LAYOUT-PORTLET']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@class='DragControlArea']</td>
	<td></td>
</tr>
<tr>
	<td>dragAndDropToObject</td>
	<td>//div[@class='DragControlArea']</td>
	<td>UIPageBody</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View Mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View Mode</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View Mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View Mode</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Delete application --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@class='PortletIcon AcrobatFile']</td>
	<td></td>
</tr>
<tr>
	<td>mouseOver</td>
	<td>//div[@class='PortletIcon AcrobatFile']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[4]/div/div[2]/div/div/div[2]/div/div/div/div/div/div/a[2]</td>
	<td></td>
</tr>
<tr>
	<td>waitForConfirmationPresent</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Are you sure you want to delete this portlet?</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIPortalComposer']//a[@title=&quot;Finish&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIPortalComposer']//a[@title=&quot;Finish&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Delete portal --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[contains(@href,'Test_SNF_PRL_26')]/following-sibling::a[text()='Delete']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//a[contains(@href,'Test_SNF_PRL_26')]/following-sibling::a[text()='Delete']</td>
	<td></td>
</tr>
<tr>
	<td>waitForConfirmationPresent</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Are you sure you want to delete this portal?</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextNotPresent</td>
	<td>Test_SNF_PRL_26</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextNotPresent</td>
	<td>Test_SNF_PRL_26</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
</tbody></table>
</body>
</html>
